package com.xxb.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class DateUtil {
	
	public static String getNow(){
		
		Date now = new Date();
		String getnow = new SimpleDateFormat("yyyyMMddHHmmss").format(now);
		int randomInt = new Random().nextInt(100);
		return getnow + randomInt; 
	}
	
	public static String getTime(){
		
		Date now = new Date();
		String getnow = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(now);
		
		return getnow ; 
	}
}
